PulseCanvas / app · pulsecanvas.ai / Sources / PulseCanvas / Resources / ProjectM / Presets / Reaction / Liquid Blobby / LuxXx - the first beat-tube.milk
| 1 | MILKDROP_PRESET_VERSION=201 |
| 2 | PSVERSION=3 |
| 3 | PSVERSION_WARP=3 |
| 4 | PSVERSION_COMP=3 |
| 5 | [preset00] |
| 6 | fRating=5.000000 |
| 7 | fGammaAdj=1.000 |
| 8 | fDecay=0.929 |
| 9 | fVideoEchoZoom=1.000 |
| 10 | fVideoEchoAlpha=0.500 |
| 11 | nVideoEchoOrientation=0 |
| 12 | nWaveMode=4 |
| 13 | bAdditiveWaves=1 |
| 14 | bWaveDots=1 |
| 15 | bWaveThick=1 |
| 16 | bModWaveAlphaByVolume=1 |
| 17 | bMaximizeWaveColor=1 |
| 18 | bTexWrap=1 |
| 19 | bDarkenCenter=0 |
| 20 | bRedBlueStereo=0 |
| 21 | bBrighten=1 |
| 22 | bDarken=1 |
| 23 | bSolarize=0 |
| 24 | bInvert=0 |
| 25 | fWaveAlpha=0.331 |
| 26 | fWaveScale=0.898 |
| 27 | fWaveSmoothing=0.108 |
| 28 | fWaveParam=0.100 |
| 29 | fModWaveAlphaStart=0.720 |
| 30 | fModWaveAlphaEnd=1.280 |
| 31 | fWarpAnimSpeed=0.010 |
| 32 | fWarpScale=1.766 |
| 33 | fZoomExponent=1.00016 |
| 34 | fShader=0.000 |
| 35 | zoom=1.00000 |
| 36 | rot=0.00000 |
| 37 | cx=0.500 |
| 38 | cy=0.500 |
| 39 | dx=0.00001 |
| 40 | dy=0.00001 |
| 41 | warp=0.01000 |
| 42 | sx=1.00000 |
| 43 | sy=1.00000 |
| 44 | wave_r=0.000 |
| 45 | wave_g=0.500 |
| 46 | wave_b=0.500 |
| 47 | wave_x=0.500 |
| 48 | wave_y=0.540 |
| 49 | ob_size=0.005 |
| 50 | ob_r=0.000 |
| 51 | ob_g=0.000 |
| 52 | ob_b=0.000 |
| 53 | ob_a=1.000 |
| 54 | ib_size=0.005 |
| 55 | ib_r=0.000 |
| 56 | ib_g=0.000 |
| 57 | ib_b=0.000 |
| 58 | ib_a=0.100 |
| 59 | nMotionVectorsX=24.800 |
| 60 | nMotionVectorsY=9.000 |
| 61 | mv_dx=0.000 |
| 62 | mv_dy=0.160 |
| 63 | mv_l=1.500 |
| 64 | mv_r=1.000 |
| 65 | mv_g=1.000 |
| 66 | mv_b=1.000 |
| 67 | mv_a=0.000 |
| 68 | b1n=0.000 |
| 69 | b2n=0.000 |
| 70 | b3n=0.000 |
| 71 | b1x=1.000 |
| 72 | b2x=1.000 |
| 73 | b3x=1.000 |
| 74 | b1ed=0.250 |
| 75 | wavecode_0_enabled=1 |
| 76 | wavecode_0_samples=352 |
| 77 | wavecode_0_sep=0 |
| 78 | wavecode_0_bSpectrum=0 |
| 79 | wavecode_0_bUseDots=1 |
| 80 | wavecode_0_bDrawThick=1 |
| 81 | wavecode_0_bAdditive=1 |
| 82 | wavecode_0_scaling=0.03856 |
| 83 | wavecode_0_smoothing=0.20000 |
| 84 | wavecode_0_r=1.000 |
| 85 | wavecode_0_g=0.000 |
| 86 | wavecode_0_b=1.000 |
| 87 | wavecode_0_a=1.000 |
| 88 | wave_0_per_frame1=q1=bass_att; |
| 89 | wave_0_per_point1=r = abs (sin (frame /38)); |
| 90 | wave_0_per_point2=g = 0.5*abs (cos (frame /45)); |
| 91 | wave_0_per_point3=b = 0.5*abs (sin (frame / 133)); |
| 92 | wave_0_per_point4=a = 0.3; |
| 93 | wave_0_per_point5=t02 = t02 + q1/10; |
| 94 | wave_0_per_point6=ratio = sin (frame/49); |
| 95 | wave_0_per_point7= |
| 96 | wave_0_per_point8=ampl = 0.01+0.4*sqr(sin ((frame ) / 18)* cos (frame / 123)); |
| 97 | wave_0_per_point9= |
| 98 | wave_0_per_point10=x1 = (r-0.5)/15 +0.5 + ampl* sin (sample*6.28); |
| 99 | wave_0_per_point11=y1 = (b-0.5)/15+0.5 + ampl* cos (sample*6.28); |
| 100 | wave_0_per_point12= |
| 101 | wave_0_per_point13=x = x1+1*0.2*(ampl+ratio )*sin ( sample*6.28 * ratio*7.3); |
| 102 | wave_0_per_point14=y = y1+1*0.2*(ampl+ratio )*cos ( sample*6.28*6); |
| 103 | wave_0_per_point15= |
| 104 | wavecode_1_enabled=0 |
| 105 | wavecode_1_samples=15 |
| 106 | wavecode_1_sep=0 |
| 107 | wavecode_1_bSpectrum=0 |
| 108 | wavecode_1_bUseDots=0 |
| 109 | wavecode_1_bDrawThick=0 |
| 110 | wavecode_1_bAdditive=0 |
| 111 | wavecode_1_scaling=2.06378 |
| 112 | wavecode_1_smoothing=0.80000 |
| 113 | wavecode_1_r=0.800 |
| 114 | wavecode_1_g=0.000 |
| 115 | wavecode_1_b=0.600 |
| 116 | wavecode_1_a=0.900 |
| 117 | wavecode_2_enabled=0 |
| 118 | wavecode_2_samples=112 |
| 119 | wavecode_2_sep=0 |
| 120 | wavecode_2_bSpectrum=0 |
| 121 | wavecode_2_bUseDots=0 |
| 122 | wavecode_2_bDrawThick=0 |
| 123 | wavecode_2_bAdditive=1 |
| 124 | wavecode_2_scaling=1.00000 |
| 125 | wavecode_2_smoothing=0.50000 |
| 126 | wavecode_2_r=1.000 |
| 127 | wavecode_2_g=1.000 |
| 128 | wavecode_2_b=1.000 |
| 129 | wavecode_2_a=1.000 |
| 130 | wavecode_3_enabled=0 |
| 131 | wavecode_3_samples=512 |
| 132 | wavecode_3_sep=0 |
| 133 | wavecode_3_bSpectrum=0 |
| 134 | wavecode_3_bUseDots=0 |
| 135 | wavecode_3_bDrawThick=0 |
| 136 | wavecode_3_bAdditive=0 |
| 137 | wavecode_3_scaling=1.00000 |
| 138 | wavecode_3_smoothing=0.50000 |
| 139 | wavecode_3_r=1.000 |
| 140 | wavecode_3_g=1.000 |
| 141 | wavecode_3_b=1.000 |
| 142 | wavecode_3_a=1.000 |
| 143 | shapecode_0_enabled=0 |
| 144 | shapecode_0_sides=3 |
| 145 | shapecode_0_additive=0 |
| 146 | shapecode_0_thickOutline=0 |
| 147 | shapecode_0_textured=0 |
| 148 | shapecode_0_num_inst=1 |
| 149 | shapecode_0_x=0.500 |
| 150 | shapecode_0_y=0.500 |
| 151 | shapecode_0_rad=0.31275 |
| 152 | shapecode_0_ang=0.00000 |
| 153 | shapecode_0_tex_ang=0.00000 |
| 154 | shapecode_0_tex_zoom=0.17914 |
| 155 | shapecode_0_r=0.820 |
| 156 | shapecode_0_g=0.000 |
| 157 | shapecode_0_b=0.000 |
| 158 | shapecode_0_a=1.000 |
| 159 | shapecode_0_r2=0.000 |
| 160 | shapecode_0_g2=1.000 |
| 161 | shapecode_0_b2=0.000 |
| 162 | shapecode_0_a2=0.000 |
| 163 | shapecode_0_border_r=1.000 |
| 164 | shapecode_0_border_g=1.000 |
| 165 | shapecode_0_border_b=1.000 |
| 166 | shapecode_0_border_a=0.000 |
| 167 | shape_0_per_frame1=xy=0.5+rand_frame; |
| 168 | shapecode_1_enabled=0 |
| 169 | shapecode_1_sides=4 |
| 170 | shapecode_1_additive=0 |
| 171 | shapecode_1_thickOutline=0 |
| 172 | shapecode_1_textured=0 |
| 173 | shapecode_1_num_inst=1 |
| 174 | shapecode_1_x=0.500 |
| 175 | shapecode_1_y=0.500 |
| 176 | shapecode_1_rad=0.10000 |
| 177 | shapecode_1_ang=0.00000 |
| 178 | shapecode_1_tex_ang=0.00000 |
| 179 | shapecode_1_tex_zoom=1.00000 |
| 180 | shapecode_1_r=1.000 |
| 181 | shapecode_1_g=0.000 |
| 182 | shapecode_1_b=0.000 |
| 183 | shapecode_1_a=1.000 |
| 184 | shapecode_1_r2=0.000 |
| 185 | shapecode_1_g2=1.000 |
| 186 | shapecode_1_b2=0.000 |
| 187 | shapecode_1_a2=0.000 |
| 188 | shapecode_1_border_r=1.000 |
| 189 | shapecode_1_border_g=1.000 |
| 190 | shapecode_1_border_b=1.000 |
| 191 | shapecode_1_border_a=0.100 |
| 192 | shapecode_2_enabled=0 |
| 193 | shapecode_2_sides=4 |
| 194 | shapecode_2_additive=0 |
| 195 | shapecode_2_thickOutline=0 |
| 196 | shapecode_2_textured=0 |
| 197 | shapecode_2_num_inst=1 |
| 198 | shapecode_2_x=0.500 |
| 199 | shapecode_2_y=0.500 |
| 200 | shapecode_2_rad=0.10000 |
| 201 | shapecode_2_ang=0.00000 |
| 202 | shapecode_2_tex_ang=0.00000 |
| 203 | shapecode_2_tex_zoom=1.00000 |
| 204 | shapecode_2_r=1.000 |
| 205 | shapecode_2_g=0.000 |
| 206 | shapecode_2_b=0.000 |
| 207 | shapecode_2_a=1.000 |
| 208 | shapecode_2_r2=0.000 |
| 209 | shapecode_2_g2=1.000 |
| 210 | shapecode_2_b2=0.000 |
| 211 | shapecode_2_a2=0.000 |
| 212 | shapecode_2_border_r=1.000 |
| 213 | shapecode_2_border_g=1.000 |
| 214 | shapecode_2_border_b=1.000 |
| 215 | shapecode_2_border_a=0.100 |
| 216 | shapecode_3_enabled=0 |
| 217 | shapecode_3_sides=4 |
| 218 | shapecode_3_additive=0 |
| 219 | shapecode_3_thickOutline=0 |
| 220 | shapecode_3_textured=0 |
| 221 | shapecode_3_num_inst=1 |
| 222 | shapecode_3_x=0.500 |
| 223 | shapecode_3_y=0.500 |
| 224 | shapecode_3_rad=0.10000 |
| 225 | shapecode_3_ang=0.00000 |
| 226 | shapecode_3_tex_ang=0.00000 |
| 227 | shapecode_3_tex_zoom=1.00000 |
| 228 | shapecode_3_r=1.000 |
| 229 | shapecode_3_g=0.000 |
| 230 | shapecode_3_b=0.000 |
| 231 | shapecode_3_a=1.000 |
| 232 | shapecode_3_r2=0.000 |
| 233 | shapecode_3_g2=1.000 |
| 234 | shapecode_3_b2=0.000 |
| 235 | shapecode_3_a2=0.000 |
| 236 | shapecode_3_border_r=1.000 |
| 237 | shapecode_3_border_g=1.000 |
| 238 | shapecode_3_border_b=1.000 |
| 239 | shapecode_3_border_a=0.100 |
| 240 | per_frame_1=wave_r = wave_r + 0.35*sin(1.14*time) + 0.16*sin(1.5*time); |
| 241 | per_frame_2=wave_g = wave_g + 0.36*sin(1.27*time) + 0.15*sin(1.11*time); |
| 242 | per_frame_3=wave_b = wave_b + 0.37*sin(1.284*time) + 0.15*sin(1.3*time); |
| 243 | per_frame_4=warp = 0; |
| 244 | per_frame_5= |
| 245 | per_frame_6=ob_r = wave_g; |
| 246 | per_frame_7=ob_b = wave_r; |
| 247 | per_frame_8=ob_g = wave_b; |
| 248 | per_frame_9=ib_r = wave_r; |
| 249 | per_frame_10=ib_b = wave_g; |
| 250 | per_frame_11=ib_g = wave_r; |
| 251 | per_frame_12= |
| 252 | per_frame_13=//before inversion |
| 253 | per_frame_14=scale = 4; |
| 254 | per_frame_15=angle = time*.2; |
| 255 | per_frame_16=translation_x = 0; |
| 256 | per_frame_17=translation_y = 0.2; |
| 257 | per_frame_18= |
| 258 | per_frame_19=//complex inverted |
| 259 | per_frame_20=iscale = 6; |
| 260 | per_frame_21=iangle = sin(time*0.1337)*0.3; |
| 261 | per_frame_22=itranslation_u = 0; |
| 262 | per_frame_23=itranslation_v = 0.2; |
| 263 | per_frame_24= |
| 264 | per_frame_25= |
| 265 | per_frame_26=// the m�bius transformation |
| 266 | per_frame_27=// z -> (az+b)/(cz-d); where a,b,c,d are complex numbers and z will be the uv-vector |
| 267 | per_frame_28=// (az+b)/(cz-d) = a/c + mu/(cz+d), with mu = (bc-ad)/c |
| 268 | per_frame_29=// so a/c and mu can be calculated outside of the shader |
| 269 | per_frame_30= |
| 270 | per_frame_31=a_r = cos(angle)*scale; |
| 271 | per_frame_32=a_i = sin(angle)*scale; |
| 272 | per_frame_33=b_r = translation_x; |
| 273 | per_frame_34=b_i = translation_y; |
| 274 | per_frame_35= |
| 275 | per_frame_36=c_r = -cos(iangle)*iscale; |
| 276 | per_frame_37=c_i = -sin(iangle)*iscale; |
| 277 | per_frame_38=d_r = itranslation_u; |
| 278 | per_frame_39=d_i = itranslation_v; |
| 279 | per_frame_40= |
| 280 | per_frame_41=// c^(-1) |
| 281 | per_frame_42=c_inv_r = c_r/(c_r*c_r+c_i*c_i); |
| 282 | per_frame_43=c_inv_i = c_i/(c_r*c_r+c_i*c_i); |
| 283 | per_frame_44= |
| 284 | per_frame_45=// a*c^(-1) |
| 285 | per_frame_46=ac_r = (a_r*c_inv_r - a_i*c_inv_i); |
| 286 | per_frame_47=ac_i = (a_r*c_inv_i - a_i*c_inv_r); |
| 287 | per_frame_48= |
| 288 | per_frame_49=// (bc-ad) |
| 289 | per_frame_50=bcad_r = (b_r*c_r - b_i*c_i)-(a_r*d_r-a_i*d_i); |
| 290 | per_frame_51=bcad_i = (b_r*c_i - b_i*c_r)-(a_r*d_i-a_i*d_r); |
| 291 | per_frame_52= |
| 292 | per_frame_53=// mu*c^(-1) |
| 293 | per_frame_54=mu_r = bcad_r*c_inv_r - bcad_i*c_inv_i; |
| 294 | per_frame_55=mu_i = bcad_r*c_inv_i - bcad_i*c_inv_r; |
| 295 | per_frame_56= |
| 296 | per_frame_57=q1 = ac_r; |
| 297 | per_frame_58=q2 = ac_i; |
| 298 | per_frame_59=q3 = mu_r; |
| 299 | per_frame_60=q4 = mu_i; |
| 300 | per_frame_61= |
| 301 | per_frame_62=q5 = c_r; |
| 302 | per_frame_63=q6 = c_i; |
| 303 | per_frame_64=q7 = d_r; |
| 304 | per_frame_65=q8 = d_i; |
| 305 | per_pixel_1=dy = dy + if(below(abs(q1-x),0.01),if(below(y,q2),max(0.02-abs(q1-x),0),0.001),0.001); |
| 306 | per_pixel_2=cx = 8.13988973*sqr(warp - x); |
| 307 | per_pixel_3=cx=if(below(cx,-1.0), -1.0, cx); |
| 308 | per_pixel_4=cx=if(above(cx,2.0), 2.0, cx); |
| 309 | per_pixel_5=dy=if(below(dy,-1), -1, dy); |
| 310 | per_pixel_6=dy=if(above(dy,1.0), 1.0, dy); |
| 311 | per_pixel_7=num = 8; |
| 312 | per_pixel_8=pi = 3.141592654; |
| 313 | per_pixel_9=radi = (y-.5)*.75; |
| 314 | per_pixel_10=radi = (y-.5); |
| 315 | per_pixel_11=radi = pow(radi*radi + (x-.5)*(x-.5),.5); |
| 316 | per_pixel_12= |
| 317 | per_pixel_13=an = ang + pi + time; |
| 318 | per_pixel_14=an = an - pi*2*int(an/(pi*2)); |
| 319 | per_pixel_15= |
| 320 | per_pixel_16=mod = .1; |
| 321 | per_pixel_17= |
| 322 | per_pixel_18=seg = ang + pi; |
| 323 | per_pixel_19=seg = seg/(pi*2)*num; |
| 324 | per_pixel_20=seg = int(seg); |
| 325 | per_pixel_21=seg = seg - equal(seg,num); |
| 326 | per_pixel_22= |
| 327 | per_pixel_23=anga = (ang + pi) - (pi*2/num)*seg; |
| 328 | per_pixel_24=anga = if(equal(seg%2,0),(pi*2/num) - anga,anga); |
| 329 | per_pixel_25=//anga = anga + pi/6; // num = 6 |
| 330 | per_pixel_26=anga = anga + pi/4; // num = 8 |
| 331 | per_pixel_27=//anga = anga + .85; // num = 10 |
| 332 | per_pixel_28= |
| 333 | per_pixel_29= |
| 334 | per_pixel_30=ox = .5 - radi*sin(anga); |
| 335 | per_pixel_31=oy = .5 + radi*cos(anga); |
| 336 | per_pixel_32= |
| 337 | per_pixel_33=//rot = if(equal(seg,0),rot,0); |
| 338 | per_pixel_34= |
| 339 | per_pixel_35=dx = equal(seg,3)*(x-ox); |
| 340 | per_pixel_36=dy = equal(seg,3)*(y-oy); |
| 341 | per_pixel_37= |
| 342 | per_pixel_38=dx = above(seg,0)*(x-ox); |
| 343 | per_pixel_39=dy = above(seg,0)*(y-oy); |
| 344 | per_pixel_40= |
| 345 | per_pixel_41=//dx = equal(seg,1)*(x - .5)*2; |
| 346 | per_pixel_42=dx=dx+0.003*sin((y*2-1)*64)+0.001*sin((y*2-1)*96); |
| 347 | per_pixel_43=dy=dy+0.004*cos((x*2-1)*64)+0.002*cos((x*2-1)*96); |
| 348 | per_pixel_44= |
| 349 | warp_1=`shader_body |
| 350 | warp_2=`{ |
| 351 | warp_3=` |
| 352 | warp_4=`ret = 1.25*GetBlur3(uv)-.25*GetBlur1(uv); |
| 353 | warp_5=` |
| 354 | warp_6=`uv *= (1+.15*tan(1.33*GetBlur1(saturate(ret.xy)))); |
| 355 | warp_7=`uv -= .075*tan(1.33*GetBlur1(saturate(ret.xy))); |
| 356 | warp_8=` |
| 357 | warp_9=` |
| 358 | warp_10=` // sample previous frame |
| 359 | warp_11=` ret = tex2D( sampler_main, uv ).xyz; |
| 360 | warp_12=` |
| 361 | warp_13=` // feather pen |
| 362 | warp_14=` ret = max(ret, tex2D( sampler_main, (uv-0.5)*(1-8*length(texsize.zw)) + 0.5 ).xyz); |
| 363 | warp_15=` ret = max(ret, tex2D( sampler_main, (uv-0.5)*(1+8*length(texsize.zw)) + 0.5 ).xyz); |
| 364 | warp_16=` |
| 365 | warp_17=` // darken over time |
| 366 | warp_18=` ret -= 0.024; |
| 367 | warp_19=`} |
| 368 | comp_1=`shader_body |
| 369 | comp_2=`{ |
| 370 | comp_3=` |
| 371 | comp_4=`//I'm too lazy to use a custom float here... |
| 372 | comp_5=`rand_preset = float4(q6,q7,q8,q9); |
| 373 | comp_6=` |
| 374 | comp_7=`// coloration of the red color channel |
| 375 | comp_8=`ret = float3(1,1,1)*GetBlur3(uv).x; |
| 376 | comp_9=`ret = lerp( ret, rand_preset.yzx, GetBlur2(uv).x*2); |
| 377 | comp_10=`ret = lerp( ret, max(rand_preset.yxz*2,1), GetBlur1(uv).x*0.5); |
| 378 | comp_11=`ret = lerp( ret, -0.1*rand_preset.zwy, GetPixel(uv).x); |
| 379 | comp_12=` |
| 380 | comp_13=`//spinning uv coordinates! (q2/3 are sin/cos calculations) |
| 381 | comp_14=`float2 uv2 = uv-.5; |
| 382 | comp_15=`uv2 = float2((uv2.x)*q3 - (uv2.y) * q2,(uv2.x)* q2 + (uv2.y) * q3)+.5; |
| 383 | comp_16=` |
| 384 | comp_17=`//adding some plasticity |
| 385 | comp_18=`float2 d = texsize.zw*4; |
| 386 | comp_19=`float1 dx = ( GetBlur1(uv2+float2(1,0)*d)-GetBlur1(uv2-float2(1,0)*d) ).y; |
| 387 | comp_20=`float1 dy = ( GetBlur1(uv2+float2(0,1)*d)-GetBlur1(uv2-float2(0,1)*d) ).y; |
| 388 | comp_21=`float2 uv_y = uv2+float2(dx,dy)*0.4; |
| 389 | comp_22=` |
| 390 | comp_23=`//coloration of the green color channel |
| 391 | comp_24=`ret = lerp(ret,float3(.8,.8,.8),tex2D(sampler_main,uv_y).y); |
| 392 | comp_25=`ret = lerp( ret, rand_preset, GetBlur2(uv2).y*2); |
| 393 | comp_26=`ret = lerp( ret, max(rand_preset*2,1.2), GetBlur1(uv_y).y*0.5); |
| 394 | comp_27=`ret = lerp( ret, -.01*rand_preset.xyw, GetPixel(uv2).y); |
| 395 | comp_28=` |
| 396 | comp_29=`//enable to check the warp shader |
| 397 | comp_30=`//ret = GetPixel(uv); |
| 398 | comp_31=`} |